<script type="text/javascript">
	$(function(){
		EBCMS.{$namespace}.getconfig = function getconfig(p){
			EBCMS.CORE.get({
				url:'{:U('Admin/Config/save')}',
				queryParams:p,
				target:'#lgModal .modal-content',
				loadAfter:function(data,p){
					$('#lgModal').modal('toggle');
				},
			});
		};
		EBCMS.{$namespace}.getconf = function getconf(p){
			EBCMS.CORE.get({
				url:'{:U('Admin/Conf/save')}',
				queryParams:p,
				target:'#lgModal .modal-content',
				loadAfter:function(data,p){
					$('#lgModal').modal('toggle');
				},
			});
		};
	});
</script>
<div class="panel">
	<div class="panel-body">
		<button class="btn btn-danger btn-xs pull-right" onclick="EBCMS.ACT.ajaxPost({url:'{:U('Config/build')}'});">更新配置</button>
		<p class="text-danger">编辑配置后，配置不会生效，需要更新配置方可生效！</p>
		<div class="well well-sm">后台配置</div>
		<div onclick="EBCMS.{$namespace}.getconfig({category_id:'12'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">数据库</span>
		</div>
		<div onclick="EBCMS.{$namespace}.getconfig({category_id:'16'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">数据备份</span>
		</div>
		<div onclick="EBCMS.{$namespace}.getconf({category_id:'4'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">验证码</span>
		</div>
		<div onclick="EBCMS.{$namespace}.getconfig({ids:'110,119,120,145,147'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">权限认证</span>
		</div>
		<div onclick="EBCMS.{$namespace}.getconfig({category_id:'15'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">表单令牌</span>
		</div>
		<div onclick="EBCMS.{$namespace}.getconf({category_id:'3'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">上传配置</span>
		</div>
		<div onclick="EBCMS.{$namespace}.getconf({category_id:'2'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">编辑器</span>
		</div>
	</div>
	<div class="panel-body">
		<div class="well well-sm">前台配置</div>
		<div onclick="EBCMS.{$namespace}.getconfig({ids:'149,150,151,152,154,155,156,157,161,162,163'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">前台配置</span>
		</div>
	</div>
	<div class="panel-body">
		<div class="well well-sm">SEO配置</div>
		<div onclick="EBCMS.{$namespace}.getconf({pid:'119'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">网站主页</span>
		</div>
		<div onclick="EBCMS.{$namespace}.getconf({pid:'131'});" class="thumbnail" style="width:180px;float:left;margin:10px;cursor: pointer;">
			<span style="display:block;width:100%;height:100px;background:#FF630E;line-height:100px;color:#fff;font-size:30px;text-align:center;">留言模块</span>
		</div>
	</div>
</div>